function eliminarLista(id){
	 $.ajax({
		 type: "POST",
		 url: "/eliminarLista",
		 data: "id=" + id,
		 success: function(response){
			$("#"+id).remove();
			var elementosRestantes = $("table.admin_panel tr").not(".headerCol").length;
			if(elementosRestantes==0){
				var page = parseInt($("#page").val());
				if(page>1){
					window.location.href = "home?page="+(page-1);
				}
			}
		 }
	 });
};

function editarLista(id){
	window.location.href = "editar/"+id;
};